import fetch from 'common/src/utils/fetch'
function getStudentNames(data){
    return fetch({
        url: '/api/electionservice/elcCourseTake/courseTakePage',
        method: 'post',
        data: data
    });
}
function planAddClass(data){//计划内添加课程
    return fetch({
        url: '/api/electionservice/elcCourseTake/studentList',
        method: 'put',
        data
    });
}
function retireClass(data){//退课
    return fetch({
        url: '/api/electionservice/elcCourseTake/graduateWithdraw',
        method: 'post',
        data
    });
}
function AddClass(data){
    return fetch({
        url: '/api/electionservice/elcCourseTake/graduateAdd',
        method: 'put',
       data
    });
}

export default {
    getStudentNames,//研究生选课结果处理学生名单
    planAddClass,
    AddClass,
    retireClass
};